<template>
  <div class="content">
    内容详情
  </div>
</template>

<script>
import { contentData } from '@/api/content'

export default {
  name: 'content',
  data () {
    return {
      detail: ''
    }
  },
  async created () {
    console.log('asdasdasda', this.$route)
    const id = this.$route.query.id
    const content = await contentData(id)
    if (content.status === 200) {
      if (content.data.code === 200) {
        this.detail = content
      }
    }
    console.log('this.detail-------', this.detail)
  }
}
</script>

<style lang="scss" scoped>
  .content{
    height: 400px;
  }
</style>
